import request from '@/utils/request'

export function getUserAmountDisById(params) {
  return request({
    url: `/api/app/user-amount-dis-standard/${id}`,
    method: 'get',
    baseURL: public_config.labor_api,
    params
  })
}

// 获取用户余额发放标准列表
export function getUserAmountDis(data) {
  return request({
    url: '/api/app/user-amount-dis-standard/get-all',
    method: 'post',
    baseURL: public_config.labor_api,
    data
  })
}
// 批量删除
export function deleteUserAmountDis(data) {
  return request({
    url: '/api/app/user-amount-dis-standard/delete',
    method: 'post',
    baseURL: public_config.labor_api,
    data
  })
}

// 批量充值
export function doRechargeUserAmountDis(data) {
  return request({
    url: '/api/app/user-amount-dis-standard/do-recharge',
    method: 'post',
    baseURL: public_config.labor_api,
    data
  })
}
// 批量未充值
export function doNotRechargeUserAmountDis(data) {
  return request({
    url: '/api/app/user-amount-dis-standard/do-no-recharge',
    method: 'post',
    baseURL: public_config.labor_api,
    data
  })
}

// 导出
export function excelUserAmountDisStandardExcel(params) {
  return request({
    url: '/api/Export/GetExcelUserAmountDisStandardExcel',
    method: 'get',
    baseURL: public_config.labor_api,
    responseType: 'blob',
    params
  })
}

export function getCouponRecordAll(data) {
  return request({
    url: '/api/app/coupon-record/get-item-all',
    method: 'post',
    baseURL: public_config.labor_api,
    data
  })
}
